/*
 * @Author: your name
 * @Date: 2021-08-03 15:32:19
 * @LastEditTime: 2021-08-06 20:16:55
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \Self\hrsaas-86\src\store\getters.js
 */
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 建立用户头像的映射
  staffPhoto: state => state.user.UserInfo.staffPhoto,
  // token: state => state.user.token,
  // avatar: state => state.user.avatar,
  // name: state => state.user.name
  token(state) {
    return state.user.token
  },
  // name(state) {
  //   return state.user.UserInfo.username
  // }
  name: state => state.user.UserInfo.username
}
export default getters
